package json;

import java.util.HashMap;
import java.util.Map;

import util.JsonUtils;

public class JSONResult {

	private String message;
	/**
	 * 需要返回页面的对象，将被封装成json对象
	 */
	private final Map<String, Object> jsonObjectMap = new HashMap<String, Object>();

	public String toString() {
		Map<Object, Object> map = new HashMap<Object, Object>();

		map.putAll(jsonObjectMap);
		map.put("message", message);
		return JsonUtils.map2json(map);
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	

}
